package cn.yshujia.controller;

import cn.yshujia.domain.vo.ApiVO;
import cn.yshujia.service.impl.AuthorizeServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author YShuJia
 * @create 2025/1/3
 * @description AuthorizeController
 */

@RestController
public class AuthorizeController {
	
	@Resource
	private AuthorizeServiceImpl service;
	
	@GetMapping ("/exchange/sm2")
	public ApiVO<String> exchangeSM2Key() {
		return ApiVO.success(service.exchangeSm2Key());
	}
}
